package com.tpp.threat_perception_platform.dao;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.WeakPwd;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author yokui
* @description 针对表【weak_pwd】的数据库操作Mapper
* @createDate 2025-06-15 17:57:22
* @Entity com.tpp.threat_perception_platform.pojo.WeakPwd
*/
public interface WeakPwdMapper {

    int deleteByPrimaryKey(Long id);

    int insert(WeakPwd record);

    int insertSelective(WeakPwd record);

    WeakPwd selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WeakPwd record);

    int updateByPrimaryKey(WeakPwd record);

    int countByMacAddress(String macAddress);

    void deleteByMacAddress(String macAddress);

    List<WeakPwd> findAll(@Param("param") MyParam param);
    //模糊搜索相关
    List<WeakPwd> findByMacAddress(@Param("param") MyParam param);
    List<WeakPwd> findByHostName(@Param("param") MyParam param);
    List<WeakPwd> findByAccountName(@Param("param") MyParam param);
    List<WeakPwd> findByWeakPwd(@Param("param") MyParam param);

    List<String> selectAbnormalHosts();

    int selectCount();
}
